package com.lagou.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * <pre>
 * 描述：TODO 解析配置文件总类
 * </pre>
 *
 * @类名：com.lagou.pojo.Configuration
 * @作者 mengwei
 * 创建日期：2020/9/27 16:33
 */
public class Configuration {

//    数据源信息
    private DataSource dateSource;

    // 存放解析后的sql信息，key为  namespace+id；value 为解析后的sql块信息
    private Map<String,MappedStatement> mappedStatementMap = new HashMap<>();

    public DataSource getDateSource() {
        return dateSource;
    }

    public void setDateSource(DataSource dateSource) {
        this.dateSource = dateSource;
    }

    public Map<String, MappedStatement> getMappedStatementMap() {
        return mappedStatementMap;
    }

    public void setMappedStatementMap(Map<String, MappedStatement> mappedStatementMap) {
        this.mappedStatementMap = mappedStatementMap;
    }
}
